package com.misspao.lottery.mapper;

import com.misspao.lottery.model.Employee;
import com.misspao.lottery.model.EmployeeAndPrizeVO;
import com.misspao.lottery.model.Prize;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>Title: </p>
 * <p>Company:misspao </p>
 *
 * @author: buwenmin
 * @Date: Create in 13:34 2018/1/30
 * @Description:
 */
@Mapper
@Repository

public interface EmployeeMapper {
    Employee findUserByPhonenumAndUsername(Employee employee);

    EmployeeAndPrizeVO findUserByPhonenum(String phonenum);

    void updateEmployeePrizeId(Employee employee);

    void insertEmployee(Employee employee);

    Employee validateEmployeeByPhonenum(String phonenum);

    void updatePrizeId();

    List<Employee> finAll();
}
